-- 脚本 tab 标签 - [ 功能 ] 页面
function UiTabDh(option)
  if option == 'freetask' then return nil end

  local uidh_guanxian = ''
  if option ~= 'xxx' then
    uidh_guanxian = '自动识别,'
  end

  uidh_guanxian = '太尉,大司马,大司徒,大司空,大将军,大都督,卫将军,尚书令,京兆尹,中郎将,刺史,太守,校尉,都尉,司马,护军'


  local uiArray = nil
  -- RxLog('--- UiTabDh 1')
  uiArray = UiCore:addUI(nil, {
    UiCore:Label_little_Columns('敦煌 - 荭包 - 是否自动领取', 1),
    UiCore:Switch('dhRedbag','on'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('敦煌跑图记录保留天数', 1),
    UiCore:ComboBox('dh_saveday','1,3,7,15,30','1'),
    UiCore:Line_min_width()
  })

  if option == 'main' then
    uiArray = UiCore:addUI(uiArray, {
      UiCore:Label_little_Columns('敦煌 - 采用`高级`文字识别 (需要 触动vip用户 )', 1),
      UiCore:Switch('dh_use_tsimg','off'),
      UiCore:Label('用于 标准/抢单, 识别 -> 玉璧/元宝'),
      UiCore:Line_min_width(),
    })
  end

  uiArray = UiCore:addUI(uiArray, {
    UiCore:Label_little('敦煌悬浮框-显示内容 扩展选择'),
    UiCore:CheckBoxGroup('dhFloat','元宝,水池,植物浇水,神气的胖子,神叨的胖子','0@1', 2),

    UiCore:Label_little_Columns('敦煌悬浮框-外观样式', 1),
    UiCore:ComboBox('dh_floatStyle','列表,极简,简约,球状','0'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('神秘老者-主公官衔', 1),
    UiCore:ComboBox('dh_guanxian',uidh_guanxian,'0'),
    UiCore:Label_little(' - 如有暂停脚本操作，更新官衔，请重启并重新选择'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('神秘老者-主公等级', 1),
    UiCore:ComboBox('dh_dengji','自动识别,120', "0"),
    UiCore:Line_min_width(),
  })

  uiArray = UiCore:addUI(uiArray, {
    UiCore:Label_little_Columns('神神叨叨的胖子', 1),
    UiCore:ComboBox('dh_ssdddpz','100银两,100元宝,100玉璧','1'),
    UiCore:Label('-- -- 如果[账号]没有跑过图，请手动跑图`给100玉璧`'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('奇异的水池', 1),
    UiCore:ComboBox('dh_qydsc','1银币,1元宝,1玉璧','2'),
    UiCore:Line_min_width(),

    UiCore:Label_little('枯萎的植物 - 灌溉(露水，冰清水，寒梅藴水，上古神水)'),
    UiCore:Label_little_Columns('枯萎的植物',1),
    UiCore:ComboBox('dh_kwdzw','灌溉xx,挖取植物,无视','1'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('华丽的宝箱 - 打开次数',1),
    UiCore:ComboBox('dh_hldbx','1,2,3,4,5,6,7,8,9,10','2'),
    UiCore:Line_min_width(),

    UiCore:Label_little('神秘行商 - 默认不购买'),
    UiCore:Label_little_Columns('购买总开关', 1),
    UiCore:Switch('dh_smxs_switch','on'),
    UiCore:CheckBoxGroup('dh_smxs','玄天八卦-2个75玉璧'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('探险者 - 挑战', 1),
    UiCore:ComboBox('dh_txz','最弱,相等','0'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('可疑的男子', 1),
    UiCore:ComboBox('dh_kydnz','100购买丹药,抢夺,驱赶','0'),
    UiCore:Line_min_width(),

    UiCore:Label_little_Columns('粗心的探宝者', 1),
    UiCore:ComboBox('dh_cxdtbz','击晕对方,故意发出声响','1'),
    UiCore:Line_min_width(),

    UiCore:Label_large('注意-敦煌失败'),
    UiCore:Label('有: 神秘的老者，精巧的机关，神秘的箱子，华丽的宝箱，房间内找不到下一层'),
  })

  return uiArray
end
